<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns:gae="http://fgeorges.org/ns/gae/tools"
                xmlns:java="java:org.fgeorges.gae.tools.saxon.GAETools"
                version="2.0">

   <xsl:function name="gae:load" as="document-node()?">
      <xsl:param name="uri" as="xs:string"/>
      <xsl:sequence select="java:load($uri)"/>
   </xsl:function>

   <xsl:function name="gae:save" as="xs:boolean">
      <xsl:param name="uri"  as="xs:string"/>
      <xsl:param name="node" as="node()?"/>
      <xsl:sequence select="java:save($uri, $node)"/>
   </xsl:function>

</xsl:stylesheet>
